<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="applicable-device" content="pc,mobile">
    <meta charset="utf-8">
    [(${seo})]
    <!--  cdn -> css + js-->
    <!-- <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.min.css"/>-->
    <!-- <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>-->
    <!-- <script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>-->
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.8.3/jquery.min.js"></script>-->
    <!-- css  -->
    <link rel="stylesheet" th:href="${staticPath}+ '/static/plugins/element-ui/2.15.14/index.min.css'"/>
    <link rel="stylesheet" th:href=" ${staticPath}+ '/static/assets/css/style.css'"/>
    <link rel="stylesheet" th:href=" ${staticPath}+ '/static/assets/css/home.css'"/>
    <link rel="stylesheet" th:href=" ${staticPath}+ '/static/assets/css/doc.css'"/>
    <link rel="stylesheet" th:href=" ${staticPath}+ '/static/plugins/v-md-editor/lib/theme/style/github.css'"/>
    <link rel="stylesheet" th:href=" ${staticPath}+ '/static/plugins/mobile-menu/css/mobile-menu.css'"/>
    <!-- js -->
    <script th:src="${staticPath}+ '/static/plugins/vue/vue.min.js'"></script>
    <script th:src="${staticPath}+ '/static/plugins/element-ui/2.15.14/index.min.js'"></script>
    <script th:src="${staticPath}+ '/static/plugins/jquery/jquery.min.js'"></script>
    <script th:src="${staticPath}+ '/static/assets/js/base.js'"></script>
    <script th:src="${staticPath}+ '/static/assets/util/xj-util.js'"></script>
    <script th:src="${staticPath}+ '/static/plugins/mobile-menu/js/mobile-menu.js'"></script>
</head>

<body>
<div id="app" v-cloak>
    <!-- 顶部 -->
    <div th:include="~{base/header :: header}" th:remove="tag"></div>

    <!-- 页面内容 -->
    <el-card class="box-card">
        <div class="home">
            <img class="home-logo" th:src=" ${config.logo}">
            <h1 class="home-title"> [[${config.title}]]</h1>
            <p class="home-description"> [[${config.description}]]</p>
            <p class="action">
                <a th:href="${config.buttonHref}">
                    <el-button size="medium" type="success">[[${config.button}]]</el-button>
                </a>
            </p>
            <div class="features">
                <div class="feature" th:each="item ,star : ${config.features}">
                    <h2>[[ ${item.title} ]]</h2>
                    <p>[[ ${item.description} ]]</p>
                </div>
            </div>
        </div>
    </el-card>

    <!-- 顶部 -->
    <div th:include="~{base/bottom :: bottom}" th:remove="tag"></div>
</div>

<script>


    var vm = new Vue({
        // 绑定 id="app" 的元素
        el: "#app",
        data: {
            pageName: "index",
        },
    })


    /**
     * 屏幕宽高打印
     */
    function watchWindowSize() {
        // Gets the width and height of the window, excluding the scroll bar
        var w = document.documentElement.clientWidth;
        var h = document.documentElement.clientHeight;
        console.log("clientWidth: " + w + ", " + "clientHeight: " + h);
    }

    // Appends the event listener function to the resize event of the window
    window.addEventListener("resize", watchWindowSize);
    watchWindowSize();
</script>

</body>
</html>
